package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测试场次对象 t_test_session
 * 
 * @author lcz
 * @date 2025-02-20
 */
@Data
@ApiModel("测试场次对象")
public class TestSession extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 测试场次ID */
    @ApiModelProperty("测试场次ID")
    private Long id;

    /** 测试名称 */
    @Excel(name = "测试名称")
    @ApiModelProperty("测试名称")
    private String testName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("结束时间")
    private Date endTime;

    /** 学校ID */
    @Excel(name = "学校ID")
    @ApiModelProperty("学校ID")
    private Long schoolId;

    /** 学校名称 */
    @Excel(name = "学校名称")
    @ApiModelProperty("学校名称")
    private String schoolName;

    /** 老师ID */
    @Excel(name = "老师ID")
    @ApiModelProperty("老师ID")
    private Long teacherId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTestName(String testName) 
    {
        this.testName = testName;
    }

    public String getTestName() 
    {
        return testName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setSchoolName(String schoolName) 
    {
        this.schoolName = schoolName;
    }

    public String getSchoolName() 
    {
        return schoolName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testName", getTestName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("schoolId", getSchoolId())
            .append("schoolName", getSchoolName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("teacherId", getTeacherId())
            .toString();
    }
}
